package com.nl.controller.sms5g.controller;

import com.nl.controller.sms5g.service.TimerTaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@EnableScheduling
public class Sms5gTimerTaskController {
    @Autowired
    private TimerTaskService timerTaskService;
    @Scheduled(cron="0 20 00 * * ?  ")
    public void upward(){
        log.info("发送签名审核邮件开始");
        timerTaskService.sendCheckEmail();
    }
}
